package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.content.Intent;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class CommuBean implements Serializable,IJsonParser{

	/**
	 * {
            "price": 1.03,
            "cooperative_corp_id": 100000016,
            "valid_days": 20,
            "name": "产品名称5",
            "issue_type": 0,
            "brand": "品牌5",
            "region": "北京",
            "point_type_id": 37,
            "icon": {
                "url": "http://imgs.ykdllmyr.com/fxs/2015/3/19/L8sth2FvMYAUoWnUzwqKan.jpeg",
                "width": 266,
                "file_id": 285,
                "height": 115
            }
        }
	 */
	private static final long serialVersionUID = 6450039763793748168L;

	private String price;
	private String cooperative_corp_id;
	private String valid_days;
	private String name;
	private String issue_type;
	private String brand;
	private String region;
	private String point_type_id;
	private FileBean icon;
	private int new_message_count;
	
	public int getNew_message_count() {
		return new_message_count;
	}


	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	public String getPrice() {
		return price;
	}


	public String getCooperative_corp_id() {
		return cooperative_corp_id;
	}


	public String getValid_days() {
		return valid_days;
	}


	public String getName() {
		return name;
	}


	public String getIssue_type() {
		return issue_type;
	}


	public String getBrand() {
		return brand;
	}


	public String getRegion() {
		return region;
	}


	public String getPoint_type_id() {
		return point_type_id;
	}


	public FileBean getIcon() {
		return icon;
	}


	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		if (json != null) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, CommuBean.class);
		}
		return null;
	}

}
